<?php
defined('ROOTPATH') OR exit('No direct script access allowed');
/**
 * BaseController
 */
use Monolog\Logger;
use Monolog\Handler\StreamHandler;

class BaseController
{
    protected $core;
    private $log;

    public function __construct()
    {
        $this->core = new core;

        $this->log = new Logger('System');
        $filename = 'Logs-'.date('Ymd').'.php';
        $this->log->pushHandler(new StreamHandler(APP_PATH.'log'.DIRECTORY_SEPARATOR.date('Ym').DIRECTORY_SEPARATOR.$filename, Logger::DEBUG));
        $this->log->notice('REQUEST_URI : '.$_SERVER['REQUEST_URI']);
        $this->log->notice('REQUEST_TIME : '.$_SERVER['REQUEST_TIME']);
        // $this->log->notice('REDIRECT_STATUS : '.$_SERVER['REDIRECT_STATUS']);
        
    }
}
